package com.example.demo.finitestatemachine.event;

import com.example.demo.finitestatemachine.IEnum;

/**
 * @author liyuncong
 * @version 1.0
 * @file LiftEventCodeEnums
 * @brief LiftEventCodeEnums
 * @details LiftEventCodeEnums
 * @date 2022-12-28
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-12-28                  liyuncong          Created
 */
public enum LiftEventCodeEnums implements IEnum {

    RUNNING(1, "running"),
    CLOSING(2, "closing"),
    OPENING(3, "opening"),
    ARRIVED(4, "arrived");


    private final Integer code;
    private final String name;

    LiftEventCodeEnums(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }
}
